Skip to content

Conversation

@lonnieezell
Copy link
Member

@lonnieezell lonnieezell commented Feb 7, 2023

Closes #334

Previously, only email and username were actually working as valid fields to login with. This was not the original intention.

This changes this to ensure that any field listed within $validFields that is within the users table can be used as a valid login credential for the Session authenticator. All login attempts must still have a password associated.

@kenjis kenjis changed the title fix(#334): Custom login fields should work for logging in. fix: Custom login fields should work for logging in. Feb 8, 2023
@datamweb datamweb closed this Feb 8, 2023
@datamweb datamweb reopened this Feb 8, 2023
Co-authored-by: Pooya Parsa Dadashi <pooya_parsa_dadashi@yahoo.com>
Copy link
Collaborator

@datamweb datamweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Very thanks for addressing this issue.

@lonnieezell lonnieezell merged commit f13ce6d into codeigniter4:develop Feb 9, 2023
@lonnieezell
Copy link
Member Author

Glad to see this one fixed, myself! you're welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for custom login credentials

2 participants